package com.fer.tankr.models.obstacles;

import org.andengine.extension.physics.box2d.PhysicsFactory;
import org.andengine.extension.physics.box2d.PhysicsWorld;
import org.andengine.opengl.texture.region.ITextureRegion;
import org.andengine.opengl.vbo.VertexBufferObjectManager;

import com.badlogic.gdx.physics.box2d.Body;
import com.badlogic.gdx.physics.box2d.FixtureDef;
import com.badlogic.gdx.physics.box2d.BodyDef.BodyType;

public class SolidCrate extends Crate{

	public SolidCrate(PhysicsWorld world, VertexBufferObjectManager vbom,
			float x, float y, float width, float height, ITextureRegion texture) {
		super(world, vbom, x, y, width, height,texture);
		
	}


	@Override
	public Body initBody() {
		return PhysicsFactory.createBoxBody(physWorld, entity, BodyType.StaticBody, fixtureDef);
	}
	
	@Override
	public FixtureDef initFixtureDef() {
		return PhysicsFactory.createFixtureDef(0, 0, 0);
	}

}
